/*
 *  Copyright 2009 Advanced Industrial Science and Technology (AIST).
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

/*! \file
 *  \brief
 */
#pragma once

namespace thrust {

  //======================================================================
  // Event Tags
  namespace detail {
    enum event_visitor_enum {
      on_no_event_num,
      on_initialize_vertex_num, on_start_vertex_num,
      on_discover_vertex_num, on_finish_vertex_num, on_examine_vertex_num,
      on_examine_edge_num, on_tree_edge_num, on_non_tree_edge_num,
      on_gray_target_num, on_black_target_num,
      on_forward_or_cross_edge_num, on_back_edge_num,
      on_edge_relaxed_num, on_edge_not_relaxed_num,
      on_edge_minimized_num, on_edge_not_minimized_num
    };
  } // namespace detail
  
  struct on_no_event { enum { num =detail::on_no_event_num}; };
  
  struct on_initialize_vertex {
    enum { num =detail::on_initialize_vertex_num};
  };
  struct on_start_vertex    { enum { num =detail::on_start_vertex_num}; };
  struct on_discover_vertex { enum { num=detail::on_discover_vertex_num}; };
  struct on_finish_vertex   { enum { num =detail::on_finish_vertex_num}; };

  struct on_examine_edge  { enum { num =detail::on_examine_edge_num}; };
  struct on_tree_edge     { enum { num =detail::on_tree_edge_num}; };
  struct on_non_tree_edge { enum { num =detail::on_non_tree_edge_num}; };
  struct on_gray_target   { enum { num =detail::on_gray_target_num}; };
  struct on_black_target  { enum { num =detail::on_black_target_num}; };
  struct on_forward_or_cross_edge {
    enum { num =detail::on_forward_or_cross_edge_num};
  };
  struct on_back_edge     { enum { num =detail::on_back_edge_num}; };

  struct on_edge_relaxed     { enum { num =detail::on_edge_relaxed_num}; };
  struct on_edge_not_relaxed { enum { num =detail::on_edge_not_relaxed_num}; };
  struct on_edge_minimized   { enum { num =detail::on_edge_minimized_num}; };
  struct on_edge_not_minimized {
    enum { num =detail::on_edge_not_minimized_num};
  };

  //================================================================
  // base_visitor and null_visitor
  template <class Visitor>
  struct base_visitor {
    typedef on_no_event event_filter;
    
    
  };
  
  struct null_visitor : public base_visitor<null_visitor> {
    typedef on_no_event event_filter;
  };

}
